package com.quxuecx.springcloud.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

/**
 * @author: shaofeer
 * <p>
 * @qq: 337081267
 * <p>
 * @CSDN: http://blog.csdn.net/pyfysf
 * <p>
 * @blog: http://wintp.top
 * <p>
 * @email: shaofeer@163.com
 * <p>
 * @time: 2020/6/30
 */
@RestController
@RequestMapping("/consumer/zkOrder")
public class ZkOrderController {
    @Resource
    RestTemplate mRestTemplate;

    @GetMapping("/get")
    public String get(){
        return mRestTemplate.getForObject("http://localhost:8004/service/payment/zk/index", String.class);
    }

}
